
const { getRemark } = require('../service/remark.service')
const { success,error } = require('../utils/response')
class remarkControllrt {
  async remark(ctx,next) {
    const params = ctx.request.body
    try{
      const res = await getRemark(params)
      if(res){
        success(ctx,res)
      } else {
        error(ctx)
      }
    } catch(err)  {
      error(ctx,null)
    }
  }
}

module.exports = new remarkControllrt()